import request from "@/utils/request";

// 查询知识产权列表
export function listComIntellectual(query) {
  return request({
    url: "/basic-api/company/comIntellectual/com/list",
    method: "get",
    params: query,
  });
}

// 查询知识产权详细
export function getComIntellectual(id) {
  return request({
    url: "/basic-api/company/comIntellectual/com/" + id,
    method: "get",
  });
}

// 新增知识产权
export function addComIntellectual(data) {
  return request({
    url: "/basic-api/company/comIntellectual/com",
    method: "post",
    data: data,
  });
}

// 修改知识产权
export function updateComIntellectual(data) {
  return request({
    url: "/basic-api/company/comIntellectual/com",
    method: "put",
    data: data,
  });
}

// 删除知识产权
export function delComIntellectual(id) {
  return request({
    url: "/basic-api/company/comIntellectual/com/" + id,
    method: "delete",
  });
}
